package com.spstudio.iforward.end.bean;

import javax.enterprise.inject.Model;
import javax.inject.Inject;

import com.spstudio.iforward.end.action.CandidateStoryReviewAction;

@Model
public class ConversationManager {
	
	@Inject CandidateStoryReviewAction candidateStoryReviewAction;
	@Inject UserMenu userMenu;
	
	public void endTotalConversation(){
		candidateStoryReviewAction.endConversation();
	}
	
	public String redirect(String groupId, String nav){
		endTotalConversation();
		userMenu.setGroupId(groupId);
		return nav;
	}

}
